<template>
    <div class="body">
        <iframe onload="iFrameHeight(this)" src="../docs/sm4.htm" style="" width="100%" height="100%" frameborder="0" class="frame"></iframe>
    </div>
</template>

<script>
    window.iFrameHeight = function(ifr) {
        var doc = ifr.contentWindow.document;
        ifr.style.height = Math.max(doc.body.scrollHeight, doc.documentElement.scrollHeight) + 'px';
    }
    export default {
        name: "sm4-doc.vue",
        mounted() {
        }
    }
</script>

<style scoped lang="less">
    .frame{
        min-height: 100vh;
    }
</style>
